/**
 * Copyright (c) 2007,中企动力华南研发中心<br>
 * All rights reserved.
 */
package com.ce.pms.charge.vo;

/**
 * 功能描述：参数预设<br>
 * @author 罗军林 创建日期：2008-8-5
 */
public class ParameterDefVO {
	private Long parameterDefId;

	/**
	 * 参数名称
	 */
	private String pname;

	/**
	 * 参数代码
	 */
	private String pkey;

	/**
	 * 关联实体键值
	 */
	private Long pvalue;

	/**
	 * 关联实体界面展示值
	 */
	private String pvalueView;

	/**
	 * 说明
	 */
	private String description;

	/**
	 * PKEY引用的是否为支付类型的交易码主键
	 */
	private Boolean isPayBusinessCode;

	/**
	 * PKEY引用的是否为收入类型的交易码主键
	 */
	private Boolean isRevenueBusinessCode;

	/**
	 * 组代码: 001系统配置模块;002房产模块;003客服模块;004收费模块
	 */
	private String gkey;

	/**
	 * 创建人
	 */
	private Long creator;

	public Long getCreator() {
		return creator;
	}

	public void setCreator(Long creator) {
		this.creator = creator;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getGkey() {
		return gkey;
	}

	public void setGkey(String gkey) {
		this.gkey = gkey;
	}

	public Long getParameterDefId() {
		return parameterDefId;
	}

	public void setParameterDefId(Long parameterDefId) {
		this.parameterDefId = parameterDefId;
	}

	public String getPkey() {
		return pkey;
	}

	public void setPkey(String pkey) {
		this.pkey = pkey;
	}

	public String getPname() {
		return pname;
	}

	public void setPname(String pname) {
		this.pname = pname;
	}

	public Long getPvalue() {
		return pvalue;
	}

	public void setPvalue(Long pvalue) {
		this.pvalue = pvalue;
	}

	/**
	 * @return pvalueViewgetPvalueView
	 */
	public String getPvalueView() {
		return pvalueView;
	}

	/**
	 * @param pvalueView the pvalueView to set
	 */
	public void setPvalueView(String pvalueView) {
		this.pvalueView = pvalueView;
	}

	public Boolean getIsPayBusinessCode() {
		return (this.pkey!=null &&
				(
				this.pkey.equals("LATEFEE_CODE")
				|| this.pkey.equals("MULTIPLE_PAY_CODE")
				|| this.pkey.equals("PRE_PAY_CODE")
				|| this.pkey.equals("BANK_PAID_CODE")
				|| this.pkey.equals("DEPOSIT_PAY_CODE")
				));
	}

	public Boolean getIsRevenueBusinessCode() {
		return (this.pkey!=null && (
				this.pkey.equals("SEWAGE_CODE")
				|| this.pkey.equals("RUBBISH_CODE")
				|| this.pkey.equals("WATER_FEE_CODE")
				|| this.pkey.equals("ELECTRICAL_BILL_CODE")
				|| this.pkey.equals("MANAGEMENT_FEE_CODE")
				|| this.pkey.equals("MAIN_BODY_MAINTENANCE_FUND_CODE")
				|| this.pkey.equals("ARRANGES_WATER_FEE_CODE")
				|| this.pkey.equals("MAINTENANCE_COST_CODE")
				|| this.pkey.equals("DEPOSIT_CODE")
				|| this.pkey.equals("RENOVATE_AMERCEMENT_CODE")
				|| this.pkey.equals("CSUT_SERVICE_EVENT_CODE")
				|| this.pkey.equals("OCCUPATION_CHARGE_CODE")
				));
	}

}
